package com.carpedil.shirodemo.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author carpedil
 * @since 2021-01-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Component
public class Operator extends Model {

  private static final long serialVersionUID = 1L;

  /** 菜单 ID */
  @TableId(value = "operator_id", type = IdType.AUTO)
  private Integer operatorId;

  /** 所属菜单 ID */
  private Integer menuId;

  /** 资源名称 */
  private String operatorName;

  /** 资源 URL */
  private String url;

  /** 权限标识符 */
  private String perms;

  /** 资源需要的 HTTP 请求方法 */
  private String httpMethod;

  /** 创建时间 */
  private LocalDateTime createTime;

  /** 修改时间 */
  private LocalDateTime modifyTime;
}
